//
//  RCStatusCell.swift
//  RCWeibo
//
//  Created by CL on 15/12/28.
//  Copyright © 2015年 CL. All rights reserved.
//

import UIKit

class RCStatusCell: UITableViewCell {


    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        
        super.init(style: style, reuseIdentifier: reuseIdentifier)
       
        setupUI()
    }
    

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    
    private func setupUI(){
    
        //添加原创微博部分
        contentView.addSubview(topView)
        
        //设置约束
        topView.snp_makeConstraints { (make) -> Void in
           // 设置顶部左边右边与contentView对齐
            make.top.left.right.equalTo(contentView)
            //设置高度
            make.height.equalTo(100)
        }

        
        
    }
    
    //MARK: - 懒加载
    /// 原创微博视图
    private lazy var topView: RCStatusCellTopVIew = RCStatusCellTopVIew()
}
